<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改电影评论</title>
    <%- include common %>
</head>
<body>
    <%- include("head",{title:"mlist",username})%>
    <div class="container container-fluid">
        <div class="row" >
            <div class="col-md-6 col-sm-6 col-lg-6">
                <h2 class="text-danger  text-center">电影信息</h2>
                <div class="thumbnail">
                    <img src="<%- movie.images.large.replace(/img7/,'img3') %>" alt="" style="height:260px;width:100%" >
                    <div>
                        <h4 class="pull-right"> <%- movie.year %>  </h4>
                        <h4 class="text-danger"> <%- movie.title %>  </h4>
                        <p class="text-success">评分 : <%- movie.rating.average %></p>
                        <p class="text-primary">分类 : <%- movie.genres %></p>
                        <p class="text-primary">导演 : <%- movie.directors[0].name %></p>
                        <p class="text-danger">主演 : 
                        <%    movie.casts.forEach(item=>{  %>
                                <span><%- item.name %></span>
                        <%    })  %>
                        </p>
                        <p style="display:flex;">
                            <%    movie.casts.forEach(item=>{  %>
                                <img style="flex:1;height:80px;margin:0 10px" src="<%- item.avatars.small.replace(/img7/,'img3') %>" />
                            <%    })  %>
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-md-6 col-sm-6 col-lg-6">
                <h2 class="text-success text-center">修改电影评论</h2>
                <form action="/comment/updatesumbit?_id=<%- result._id %>" method="POST">
                    <div class="form-group">
                        <label for="title">评论标题:</label>
                        <input id="title" name="title" value="<%- result.title %>"  type="text" class="form-control" placeholder="请输入评论标题">
                    </div>
                    <div class="form-group">
                        <label for="content">评论内容:</label>
                        <textarea cols="" rows="16" id="content" name="content"   class="form-control" placeholder="请输入评论标题">
                            <%- result.content %>
                        </textarea>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-success">修改评论</button>
                        <button type="reset" class="btn btn-danger">重置</button>
                    </div>
                </form>
            </div>
        </div>        
    </div>
    <%- include footer %>
</body>
</html>